<?php
/**
 * 下载地址
 */
class downController
{
    /**
     * 下载地址跳转
     */
    public function doindex(){
      
        if(common::request('t', 'G') == 2){
           header('HTTP/1.1 301 Moved Permanently');
           header('Location: '.common::$downUrl['iphone']);
            // echo 'iphone 版本即将发布，敬请期待';
        }else{
            header('HTTP/1.1 301 Moved Permanently');
            header('Location:http://' . common::host() . '/download/running_2.0.0_aipao.apk');
        }
        exit();
    }
}